It boils down to another function call, and has a single caller. Just let
the caller make _setActiveLayer() directly.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/46
}));
extraButton.connect('released', Lang.bind(this, function() {
if (switchToLevel != null)
- this._onLevelChanged(switchToLevel);
+ this._setActiveLayer(switchToLevel);
else if (keyval != null)
this._keyboardController.keyvalRelease(keyval);
else if (action == 'hide')
this.actor.height = maxHeight;
},
- _onLevelChanged: function (level) {
- this._setActiveLayer(level);
- },
-
_onGroupChanged: function () {
this._ensureKeysForGroup(this._keyboardController.getCurrentGroup());
this._setActiveLayer(0);